//
//  ReactCommonReference.swift
//  Screen
//
//  Created by Season02 on 10/10/16.
//  Copyright © 2016 alex.chih. All rights reserved.
//

import React

@objc
open class Reference : NSObject
{
    @objc
//    open static let ReactPageUrlPrifix = "http://192.168.3.210:8081/"
    open static let ReactPageUrlPrifix = "http://192.168.3.159:8081/"
//    open static let ReactPageUrlPrifix = "http://127.0.0.1:8081/"
    
    @objc
    open static let ReactPageUrlSuffix = ".bundle?platform=ios&dev=true"
    
    static func ReactUrl(_ name:String) -> String
    {
        return ReactPageUrlPrifix + name + ReactPageUrlSuffix
    }
    
//    static func InsertStatusColor(_ view:UIView,color:UIColor)
//    {
//        let statusBarHeight = UIApplication.shared.statusBarFrame.height
//        //rootView!.frame = CGRect(x: 0, y: statusBarHeight, width: self.view.bounds.width, height: self.view.bounds.height - statusBarHeight)
//        
//        let status = UIView()
//        
//        status.backgroundColor = color
//        view.addSubview(status)
//        
//        status.snp.makeConstraints { (make) in
//            make.left.equalTo(view)
//            make.top.equalTo(view)
//            make.width.equalTo(view)
//            make.height.equalTo(statusBarHeight)
//        }
//    }
}
